import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    commentTotal: 0
  },
  mutations: {
    setTotal(state,total){
      console.log(total)
      state.commentTotal = total
    }
  },
  actions: {},
  modules: {}
});
